﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Sugar.hisEnties
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("YS_ZY_JZJL")]
    public partial class YS_ZY_JZJL
    {
           public YS_ZY_JZJL(){


           }
           /// <summary>
           /// Desc:就诊号码，同ZY_BRRY.ZYH
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string JZHM {get;set;}

           /// <summary>
           /// Desc:病人编号（同ZY_BRRY.ZYHM）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string BRBH {get;set;}

           /// <summary>
           /// Desc:病案号码（BS-EMR4.3_V2.4增加，同ZY_BRRY.BAHM）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BAHM {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? BRID {get;set;}

           /// <summary>
           /// Desc:病人姓名
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string BRXM {get;set;}

           /// <summary>
           /// Desc:病人性别
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string BRXB {get;set;}

           /// <summary>
           /// Desc:出生日期
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CSRQ {get;set;}

           /// <summary>
           /// Desc:病人性质
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string BRXZ {get;set;}

           /// <summary>
           /// Desc:病人科室
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string KSDM {get;set;}

           /// <summary>
           /// Desc:病区代码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BQDM {get;set;}

           /// <summary>
           /// Desc:病人床号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CWHM {get;set;}

           /// <summary>
           /// Desc:主管医生
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YSDM {get;set;}

           /// <summary>
           /// Desc:BS-EMR4.3_V2.3项目增加
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ZYYS {get;set;}

           /// <summary>
           /// Desc:BS-EMR4.3_V2.3项目增加
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ZRYS {get;set;}

           /// <summary>
           /// Desc:护理级别
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? HLJB {get;set;}

           /// <summary>
           /// Desc:入院诊断
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string RYZD {get;set;}

           /// <summary>
           /// Desc:入院情况
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? RYQK {get;set;}

           /// <summary>
           /// Desc:入院日期
           /// Default:
           /// Nullable:False
           /// </summary>           
           public DateTime RYRQ {get;set;}

           /// <summary>
           /// Desc:出院日期
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CYRQ {get;set;}

           /// <summary>
           /// Desc:出院标志(RY入院 ZY在院 CY 出院)
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal CYBZ {get;set;}

           /// <summary>
           /// Desc:转科状态
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? ZKZT {get;set;}

           /// <summary>
           /// Desc:转规情况
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? ZGQK {get;set;}

           /// <summary>
           /// Desc:诊疗小组
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ZLXZ {get;set;}

           /// <summary>
           /// Desc:入院年龄
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string RYNL {get;set;}

           /// <summary>
           /// Desc:住院次数，用于病案归档
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? ZYCS {get;set;}

           /// <summary>
           /// Desc:归档标志
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? GDBZ {get;set;}

           /// <summary>
           /// Desc:归档序号，对应EMR_BL_BAGD.GDXH
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? GDXH {get;set;}

           /// <summary>
           /// Desc:归档时间，如果GDBZ=12,则表示接收时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? GDSJ {get;set;}

           /// <summary>
           /// Desc:主要诊断名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ZDMC {get;set;}

           /// <summary>
           /// Desc:目前诊断
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string MQZD {get;set;}

           /// <summary>
           /// Desc:就诊序号:同ZY_BRRY.ZYH，和JZHM冗余，意在避免ORACLE中，因强类型转换而浪费数据库资源。
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? JZXH {get;set;}

           /// <summary>
           /// Desc:离院方式（来源于病案首页中1.医嘱离院  2.医嘱转院3.医嘱转社区卫生服务机构/乡镇卫生院4.非医嘱离院5.死亡9.其他）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? LYFS {get;set;}

           /// <summary>
           /// Desc:ZY_BRRY.BRQK(1.病危 2.急诊 3.一般	4.其他 5.病重)
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? BRQK {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? SYCYRQ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string GMYW {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? SWSJ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? SJZY {get;set;}

           /// <summary>
           /// Desc:
           /// Default:1
           /// Nullable:False
           /// </summary>           
           public decimal JGID {get;set;}

           /// <summary>
           /// Desc:1.西医诊断 2.中医诊断
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public decimal? ZDLX {get;set;}

           /// <summary>
           /// Desc:体质类型针对中医 目前有9种体质 病人只能选择一种体质 
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string TZLX {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CYZDBDBZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? pdfwcbz {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? FCBZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? FCRQ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? JFRQ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? DYBZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? DYRQ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? SXRQ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? FCJLXH {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string JFSQYY {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? JCGL {get;set;}

    }
}
